
import {Router, useRouter} from 'vue-router';

export function goto(path: any, query: any, mRouter: Router) {
    const router = mRouter || useRouter();
        router.push({
            path: path,
            query: query
        }).catch(err => {
            if (err.name !== 'NavigationDuplicated') throw err;
        });
}